package cn.edu.pku.ss.situationawareperceiver.dbrecords;

import cn.edu.pku.ss.situationawareperceiver.ContextConstants.ContextType;

public class ContextShareRecord {
	// int id;
	String requesterId;
	String providerId;
	String receiveTime;
	int contextTypeInt;
	String truthValue;

	public ContextShareRecord(String requesterId, String providerId,
			String receiveTime, int contextTypeInt,
			String truthValue) {
		super();
		this.requesterId = requesterId;
		this.providerId = providerId;
		this.receiveTime = receiveTime;
		this.contextTypeInt = contextTypeInt;
		this.truthValue = truthValue;
	}

	public ContextShareRecord(String requesterId, String providerId,
			 String receiveTime, ContextType contextType,
			String truthValue) {
		super();
		this.requesterId = requesterId;
		this.providerId = providerId;
		this.receiveTime = receiveTime;
		this.contextTypeInt = contextType.ordinal();
		this.truthValue = truthValue;
	}

	public String getRequesterId() {
		return requesterId;
	}

	public void setRequesterId(String requesterId) {
		this.requesterId = requesterId;
	}

	public String getProviderId() {
		return providerId;
	}

	public void setProviderId(String providerId) {
		this.providerId = providerId;
	}

	public String getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}

	public int getContextTypeInt() {
		return contextTypeInt;
	}

	public void setContextTypeInt(int contextTypeInt) {
		this.contextTypeInt = contextTypeInt;
	}

	public String getTruthValue() {
		return truthValue;
	}

	public void setTruthValue(String truthValue) {
		this.truthValue = truthValue;
	}

}
